package Matches;

public class demo2 {
    public static void main(String[] args) {
        String matches1 = "1[3-9]\\d{9}";
        System.out.println("13785032643".matches(matches1));
        String matches2 = "0\\d{2,3}-?[0-9]\\d{4,9}";
        System.out.println("041-158859".matches(matches2));
        String matches3 = "\\d+@[\\w&&[^_]]{2,6}(\\.[a-zA-Z]{2,3}){1,2}";
        System.out.println("3128214884@qq.com.cn".matches(matches3));
        String matches = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
        System.out.println("16:45:45".matches(matches));
        System.out.println("------------------------------------");
        String matches4 = "(?i)[bca]{3}";
        System.out.println("bca".matches(matches4));
    }
}
